package com.gitee.bo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class FoodBo {

    @NotBlank(message = "菜品名称不能为空")
    private String title;

    @NotBlank(message = "菜品描述不能为空")
    private String description;

    @NotBlank(message = "菜品图片不能为空")
    private String img;

    @NotNull(message = "菜品价格不能为空")
    private BigDecimal price;
}
